package com.itheima.reflect;

public class Student {
    private static Integer a;



    private static final String COUNTRY="中国";
    private Integer id;
    private String name;

    private Student(Integer id, String name) {
        System.out.println("有参数构造器...");
        this.id = id;
        this.name = name;
    }

    public Student() {
        System.out.println("无参数构造...");
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }



    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

    private void run(){
        System.out.println("好像运动时间到了");
    }

    public void eat(){
        System.out.println("你的午餐时间到了");
    }

    public String eat(String name){
        return "今天中午的大餐是"+name;
    }
}
